﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaiTap_1
{
    public abstract class Vehice
    {
        private String name;

        public Vehice()
        {

        }

        public String go()
        {
            return ("");
        }

        public Boolean isEngineOn()
        {
            return false;
        }

        public void startEngine()
        {

        }

        public void stopEngine()
        {

        }

        public String getName()
        {
            return ("");
        }
    }

    public interface ICargoTransport
    {

        void loadCargo();

    }

    public class Car : Vehice
    {

        public Car()
        {

        }
        public override String go()
        {
            return ("");
        }
    }
    public class Person
    {

        public ArraySegment<Vehice> m_Vehice;

        public Person()
        {

        }
        public void addVehice(Vehice v)
        {

        }
    }
    public class Truck : Vehice, ICargoTransport
    {


        public override String go()
        {
            return ("");
        }

        public void loadCargo()
        {

        }
    }
}